package com.bsh.api.Exception;

/**
 * 基础异常
 * 
 * @author gsh
 * 
 */
public abstract class BaseException extends Exception {
	Integer code; // 异常代码

	public Integer getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public BaseException() {
		super();
	}

	public BaseException(int code) {
		super("错误码：" + code);
	}

	public BaseException(String code, String message) {
		super(message);
	}

}
